ValidatedLong

constructor(defaultValue: Long, range: LongRange, widgetType: ValidatedNumber.WidgetType = WidgetType.SLIDER)

A validated long number generated with a LongRange.

Author

fzzyhmstrs

Since

0.2.0

Parameters

defaultValue

Long. the default value of this wrapper

widgetType

WidgetType defines what the config GUI widget looks like


constructor(range: LongRange, widgetType: ValidatedNumber.WidgetType = WidgetType.SLIDER)

A validated long number with a default selected from the min of the allowable range.

Author

fzzyhmstrs

Since

0.2.0

Parameters

range

LongRange. the allowable range of this Validated Long

widgetType

WidgetType defines what the config GUI widget looks like


constructor(minValue: Long, maxValue: Long, widgetType: ValidatedNumber.WidgetType = WidgetType.SLIDER)

A validated long number with a default selected from the min of the allowable range.

Author

fzzyhmstrs

Since

0.2.0

Parameters

minValue

Long. the minimum allowed value, inclusive

maxValue

Long. the maximum allowed value, inclusive

widgetType

WidgetType defines what the config GUI widget looks like


constructor(defaultValue: Long)

an unbounded validated long number.

The validation will be limited to ensuring the value de/serializes as a long, since there are no bounds.

The widget type is locked to WidgetType.TEXTBOX

Author

fzzyhmstrs

Since

0.2.0

Parameters

defaultValue

Long. the default value of this wrapper


constructor()

an unbounded validated long number with default value 0L.

The validation will be limited to ensuring the value de/serializes as a long, since there are no bounds.

The widget type is locked to WidgetType.TEXTBOX

Author

fzzyhmstrs

Since

0.2.0


constructor(defaultValue: Long, maxValue: Long, minValue: Long, widgetType: ValidatedNumber.WidgetType = if(maxValue == Long.MAX_VALUE || minValue == Long.MIN_VALUE) WidgetType.TEXTBOX else WidgetType.SLIDER)

Parameters

defaultValue

Long. the default value of this wrapper

maxValue

Long. the maximum allowed value, inclusive

minValue

Long. the minimum allowed value, inclusive